package com.lhy.mymall.service;

import com.lhy.mymall.exception.MallException;
import com.lhy.mymall.pojo.User;

/**
 * @author: 卢辉宇
 * @date: 2022/12/2 22:11
 * @description:
 */
public interface UserService {
     User getUser(Integer id);

     void register(String username,String password,String emailAddress) throws MallException;

     User login(String username, String password, String verificationCode) throws MallException;

     void updateSignature(User user) throws MallException;

     boolean checkAdminRole(User user);

    boolean checkEmailRegistered(String emailAddress);
}
